package gui;

import java.util.Calendar;
import java.util.Locale;

public class Sprache {

	private int sprache;
	private static Locale loc;

	public Sprache() {

		refresh();
	}

	public void SetzeSprache() {

		setLoc(loc);
		Calendar.getInstance(loc);

	}

	public void refresh() {


		switch (getSprache()) {
		case 0:
			loc = Locale.GERMAN;
			SetzeSprache();
			break;
		case 1:
			loc = Locale.ENGLISH;
			SetzeSprache();
			break;
		case 2:
			loc = Locale.FRANCE;
			SetzeSprache();
			break;
		case 3:
			loc = (Locale.ITALIAN);
			SetzeSprache();
			break;
		case 4:
			loc = (Locale.CHINESE);
			SetzeSprache();
			break;
		case 5:
			loc = (Locale.JAPAN);
			SetzeSprache();
			break;
		default:
			loc = (Locale.getDefault());
			SetzeSprache();
			break;
		}

	}

	public void setSprache(int sprache) {
		this.sprache = sprache;
	}

	public int getSprache() {
		return sprache;
	}

	public static void setLoc(Locale loc) {
		Sprache.loc = loc;
	}

	public static Locale getLoc() {
		return loc;
	}

}
